import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/hotel',
      name: 'hotel',
      component: () => import('../components/hotel/MyHotel.vue')
    },
    {
      path: '/',
      name: 'login',
      component: () => import('../components/MyLogin.vue')
    },
    {
      path: '/ticket',
      name: 'tivket',
      component: () => import('../components/MyTicket.vue')
    },
    {
      path: '/information',
      name: 'information',
      component: () => import('../components/MyInformation.vue')
    },
    {
      path: '/select',
      name: 'selcet',
      component: () => import('../components/MySelect.vue')
    },
    {
      path: '/buy',
      name: 'buy',
      component: () => import('../components/MyBuy.vue')
    },
    {
      path: '/success',
      name: 'success',
      component: () => import('../components/smallvue/MySuccess.vue')
    },
    {
      path: '/client',
      name: 'client',
      component: () => import('../components/admin/MyClient.vue')
    },
    {
      path: '/trips',
      name: 'trips',
      component: () => import('../components/admin/MyTrips.vue')
    },
    {
      path: '/system',
      name: 'system',
      component: () => import('../components/admin/MySystem.vue')
    },
    {
      path: '/register',
      name: 'Register',
      component: () => import('../components/MyRegister.vue')
    }
  ]
})

export default router
